extends BoarStatusBase

var period_time:float = 0

func start():
	period_time = 0
	actor.play_animation("Run")
		
func run_physics_process(delta)->void:
	actor.move_and_slide()
	period_time += delta
	if period_time > 1.5:
		return change_status("Weak")

	if not find_floor() or find_wall():
		return change_status("Weak")
		
	# 发现玩家继续跑 转身跳
	if find_player():
		turn_direction()
 
func run_process(delta)->void:
	common_velocity(delta,1.5)
